FapiMember\FapiMemberPlugin D

Total Complexity 383
Dependencies 22
Dependents 2
Total lines 2,618
Lines of code 1,945
Logical lines of code 961
Comment lines 136
Methods 98
Properties 6

Methods 98

Method Rating Maintainability Complexity Lines of code
tUserProfileOneSection()
B
32 17 119
handleApiCallback()
B
35 16 94
handleUserProfileSave()
B
40 17 56
checkPage()
B
42 16 52
handleButtonLevelUnlock()
A
44 13 45
createOrProlongMembership()
A
40 11 64
handleApiCredentialsSubmit()
A
42 10 57
handleApiListFormsCallback()
A
48 11 36
timeUnlockLevelsForUser()
A
46 10 39
loginRedirect()
A
47 9 38
showLevelSelectionPage()
A
46 8 41
getEmailFromValidVoucher()
A
46 8 41
getEmailFromPaidInvoice()
A
47 8 41
sanitizeTime()
A
56 9 18
addMetaBoxes()
A
48 7 35
savePostMetadata()
S
50 7 27
handleApiSections()
S
51 6 30
handleApiSectionsSimple()
S
50 6 30
handleAddPages()
S
51 6 25
findEmailsToSend()
S
53 6 24
handleSetSettings()
S
49 5 38
addHooks()
S
42 4 52
handleSetUnlocking()
S
45 4 49
handleEditEmail()
S
46 4 45
sanitizeLevels()
S
52 5 28
migrateCredentials()
S
52 5 27
getEmailFromBodyWithValidToken()
S
53 5 24
handleRemovePages()
S
49 4 33
getLoginUrl()
S
59 5 14
addRestEndpoints()
S
44 1 68
getFapiClients()
S
54 4 22
handleNewLevel()
S
55 4 20
addScripts()
S
57 4 18
handleApiCredentialsRemove()
S
56 4 17
enhanceProps()
S
59 4 15
verifyNonceAndCapability()
S
62 4 11
handleApiCheckConnectionCallback()
S
55 3 23
redirect()
S
55 3 21
updateFapiClients()
S
56 3 19
addUserProfileForm()
S
55 3 19
loggedInRedirect()
S
64 4 10
sanitizeSubpage()
S
65 4 9
handleEditLevel()
S
60 3 13
handleOrderLevel()
S
60 3 13
checkLevelUnlock()
S
62 3 12
__construct()
S
61 3 12
registerScripts()
S
55 2 25
handleSetOtherPage()
S
53 2 24
checkIfLevelSelection()
S
67 3 7
redirectToNoAccessPage()
S
63 3 10
constructAdminMenu()
S
64 3 9
getSetting()
S
68 3 7
findSubpage()
S
68 3 7
unlockLevel()
S
60 2 13
handleNewSection()
S
62 2 12
handleRemoveLevel()
S
62 2 12
sendEmail()
S
62 2 11
addPublicScripts()
S
64 2 11
registerSettings()
S
56 1 22
registerStyles()
S
57 1 22
getAllMemberships()
S
66 2 8
timeUnlockLevelsForAllUsers()
S
69 2 7
showIndex()
S
72 2 6
showTemplate()
S
66 2 8
showTest()
S
71 2 6
fapiMembershipLoader()
S
71 2 6
renderCheckbox()
S
72 2 4
sanitizeDate()
S
66 2 8
userUtils()
S
71 2 6
registerRoles()
S
72 2 5
fapiApi()
S
65 2 9
levels()
S
71 2 6
hideAdminBar()
S
68 2 7
sanitization()
S
71 2 6
handleApiUsernamesCallback()
S
64 2 10
addAdminMenu()
S
61 1 14
showSettingsSettings()
S
81 1 3
showSettingsContentRemove()
S
81 1 3
showSettingsPages()
S
81 1 3
showSettingsElements()
S
81 1 3
showSettingsEmails()
S
81 1 3
showConnection()
S
81 1 3
showMemberList()
S
81 1 3
isDevelopment()
S
74 1 4
showSettingsContentAdd()
S
81 1 3
areApiCredentialsSet()
S
79 1 3
showSettingsContentSelect()
S
81 1 3
showSettingsLevelNew()
S
81 1 3
showSettingsSectionNew()
S
81 1 3
callbackError()
S
66 1 10
showSettingsUnlocking()
S
81 1 3
nextFullHour()
S
68 1 7
redirectToTimedUnlockNoAccessPage()
S
71 1 6
addShortcodes()
S
68 1 7
recheckApiCredentials()
S
81 1 3
registerLevelsTaxonomy()
S
82 1 3
showError()
S
68 1 8
registerPublicStyles()
S
73 1 6